<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Chat extends CI_Controller {

    public function __construct() {
        parent::__construct();
        session_start();
        $this->load->library('template');
        $this->load->helper('url');
        $this->load->helper('user_helper');
        $this->template->set_template('default');
        
//        $this->template->add_css('public/css/screen_preview.css');
        $this->template->add_css('public/css/bootstrap.css');
        $this->template->add_css('public/css/bootstrap-responsive.css');
        
//        $this->template->add_css('public/css/bootstrap.min.css');
//        $this->template->add_css('public/css/font-awesome.css');
//        $this->template->add_css('public/css/style.css');

        $this->template->add_js('public/js/jquery-1.9.1.js');
//        $this->template->add_js('public/js/jquery.min.js');
        $this->template->add_js('public/js/bootstrap.min.js');
//        $this->template->add_js('public/js/main.js');
//        $this->template->add_js('public/js/behavior.js');
//        $this->template->add_js('public/js/modernizr.js');
//        $this->template->add_js('public/js/waypoints.min.js');
//        $this->template->add_js('public/js/jquery.knob.js');
//        $this->template->add_js('public/js/jquery.easing.1.3.js');
        
        $data["newUrl"] = base_url() . "index.php/event/";
        $data["createEventUrl"] = base_url() . "index.php/event/create";
        $data["loginUrl"] = base_url() . "index.php/user/";
        $data["chatUrl"] = base_url() . "index.php/chat/";
        $data["registerUrl"] = base_url() . "index.php/user/register";
        $this->template->write_view('header', 'top_menu', $data, TRUE);
    }

    public function index() {
        //Load content, not load file
        $this->template->write('title', 'Sự kiện');
//        $this->template->write_view('content', 'test_template');
        $this->template->write_view('content', 'chat/inbox');
        $this->template->load();
        
    }

    

}

